Skip to content

Remove incorrect warning about FILTER_CALLBACK flags#5243

Open
lacatoire wants to merge 1 commit intophp:masterfrom
lacatoire:fix/issue-2708-filter-callback-flags
Open

Remove incorrect warning about FILTER_CALLBACK flags#5243
lacatoire wants to merge 1 commit intophp:masterfrom
lacatoire:fix/issue-2708-filter-callback-flags

Conversation

@lacatoire
Copy link
Contributor

@lacatoire lacatoire commented Feb 2, 2026

Fixes #2708

Remove incorrect statement that FILTER_CALLBACK cannot be used with filter flags like FILTER_NULL_ON_FAILURE.

Happy to adjust if needed.

The documentation incorrectly stated that FILTER_CALLBACK cannot be used
with filter flags like FILTER_NULL_ON_FAILURE. In practice, these flags
do affect the behavior of FILTER_CALLBACK.

Fixes php#2708
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FILTER_CALLBACK does not ignore all flags

1 participant